home *** CD-ROM | disk | FTP | other *** search
- /* clear87.c FUNCTION, FROM P. 203 OF TURBOC BIBLE */
- #include<math.h>
- #include<float.h>
- main()
- {
- float a;
- double b = 1.e-40;
- unsigned fpstatus;
- a=b;
- printf(" after underflow/inexact");
- fpstatus = _clear87();
- printf("status word was: %x\n", fpstatus);
- fpstatus = _status87();
- printf("After _clear87, status word is : %x\n", fpstatus);
- }